package ssm;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by jack on 18/6/2.
 */
@Service
public class BookServiceImpl implements BookService {

    @Autowired
    BookDao bookDao;

    @Override
    public String findBookById(int id) {
        return bookDao.findBookById(id);
    }

    @Override
    public void saveBook(Book book) {
        bookDao.saveBook(book);
    }
}
